package abcy.cloud.blogcommon.enums;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum StatusCodeEnum {

    /**
    *200 成功
    * */
    SUCCESS(200,"成功"),
    FAIL(500,"失败"),
    NOT_LOGIN(401,"未登录"),
    NOT_ALLOWED(403,"权限不足"),
    PARAM_INVALID(400,"参数不合法"),
    ;

    private final Integer code;

    private final String message;

    /*private StatusCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String message() {
        return message;
    }*/

}
